package com.ib.review.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author ldw
 * 2024/01/24 20:36
 */
@Data
@TableName("td_user_info")
public class UserInfoDO {

    @TableId(value = "user_account", type = IdType.INPUT)
    private String userAccount;
    private String userName;
    private String userPwd;
    private String phoneNum;
    private String email;
    private String sex;
    private Integer userStatus;
    /**
     * 0 外部同步用户
     * 1 系统用户
     */
    private Integer userType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    private String creator;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp modifyTime;
    private String modifier;
    private Integer errorNum;
    private String areaCode;

    @TableField(exist = false)
    private String areaName;

    /**
    1：领导，0：员工
     */
    private Integer userLeader;

}
